package presentationTier.actions;

import presentationTier.dialogs.ChangeMediumDialog;
import core.MovieException;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import presentationTier.MainForm;

/**
 *
 * @author vojta
 */
public class ChangeMediumMenuItemAction implements ActionListener{

    MainForm form;

    public ChangeMediumMenuItemAction(MainForm aThis) {
        form = aThis;
    }

    public void actionPerformed(ActionEvent e) {
        try {
            ChangeMediumDialog d = new ChangeMediumDialog(form, true);
            d.setVisible(true);
        } catch (MovieException ex) {
            form.error(ex);
        }
    }



}
